#include <stdio.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>

bool checkFileUpdate(string path){

	struct stat buf;
	time_t ltime;

	if (stat(path, &buf)){
		return(FALSE);
	}

	time( &ltime );

	if(difftime(ltime ,buf.st_mtime ) > 0){
		return(FALSE);
	}
	return(TRUE);
}